# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=glycin
pkgver=0.1.2
pkgrel=0
pkgdesc="Sandboxed and extendable image decoding"
url="https://gitlab.gnome.org/sophie-h/glycin"
# s390x: https://github.com/nix-rust/nix/issues/1968
arch="all !s390x"
license="MPL-2.0 OR LGPL-2.0-or-later"
makedepends="meson cargo gtk4.0-dev libheif-dev"
source="https://gitlab.gnome.org/sophie-h/glycin/-/archive/$pkgver/glycin-$pkgver.tar.gz"
options="!check" # tests hang

build() {
	abuild-meson \
		-Dtest_skip_install=true \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
c098ac4debf9b067d7ff70f0e9bb2a571c46cfdfb2ac1a9676591f4ab41bc2f6aa6b39259f2030b5d12002d3054b8c670fbef8da84d74791b90569f620deb0f3  glycin-0.1.2.tar.gz
"
